import { request } from "@/utils/request";
import type { MessageListResult } from "@/types/message";

// 获取私信
export const getPrivateMessage = (data?: {
  limit: number;
  offset: number;
}): Promise<MessageListResult> =>
  request<MessageListResult>({
    url: "/msg/private",
    data,
  });

// 私信内容
export const getPrivateMessageContent = (data: {
  uid: number;
}): Promise<MessageListResult> =>
  request<MessageListResult>({ url: "/msg/private/history", data });
